#!/bin/bash

CONTAINER_NAME="seckill-login-demo"

git pull

# 删除容器
if docker ps -a | grep $CONTAINER_NAME | awk '{print $1 }' ; then
    docker rm -f $CONTAINER_NAME
fi


docker build -t seckill-login .

docker run --name seckill-login-demo -d -p 4000:4000 seckill-login

